Software Development
Integrating with Databases Using JPA and Hibernate
Database Integration: Modeling Data Using JPA & Hibernate
Database Integration: Overview of Using JPA & Hibernate

Database Integration: Modeling Data Using JPA & Hibernate

Course Number:
it_jpjpahdj_02_enus
Lesson Objectives

Database Integration: Modeling Data Using JPA & Hibernate

  • discover the key concepts covered in this course
  • configure entities in an application using JPA annotations
  • set identifiers for entities in an application to auto-generate
  • define a class whose members will serve as the composite key for an entity in an application
  • recognize different ways to define composite keys for the entities in an application
  • use the JPA APIs to add new data to and retrieve existing data from a table in a relational database
  • perform update and delete operations on persisted data using JPA APIs
  • define entities in an application that have a one-to-one relationship with one another
  • describe how Hibernate translates a one-to-one relationship defined with JPA annotations to a relational database
  • implement a one-to-many relationship between entities in an application using JPA
  • use JPA annotations to configure a many-to-many relationship between entities in an application
  • summarize the key concepts covered in this course

Overview/Description
In order to build effective applications in Java, developers must understand how the apps interact with a database. Through this course, gain hands-on experience in defining entities and the relationship between them in a JPA application and their implementation with Hibernate. Begin by defining entities in an app that have identifiers based on a single as well as a combination of properties - i.e., single value primary keys and composite keys. You'll then explore CRUD operations (create, read, update, and delete) using JPA APIs. Finally, you'll delve into defining one-to-one, one-to-many, and many-to-many relationships between entities in an application. After you're done with this course, you'll have a solid grasp of how to define entities using JPA, model their relationships, and how Hibernate translates these into database relations.

Target

Prerequisites: none

Database Integration: Overview of Using JPA & Hibernate

Course Number:
it_jpjpahdj_01_enus
Lesson Objectives

Database Integration: Overview of Using JPA & Hibernate

  • discover the key concepts covered in this course
  • describe object-relational mapping and the role of JPA and Hibernate in implementing this technique
  • use Apache Maven to create a Java project that uses the Hibernate framework
  • integrate an application with a relational database using Hibernate configurations and APIs
  • apply Hibernate APIs to persist the data in Java objects to a relational database
  • use JPA configurations and annotations to define the entities in a Java app and map them to a relational database
  • define how a database schema will be set up once a JPA app is launched
  • use SQL scripts to set up a database for use by a Java app
  • summarize the key concepts covered in this course

Overview/Description
Object-relational mapping (ORM) allows Java objects to be mapped to database tables and vice versa. Use this course to learn more about the Java Persistence API (JPA), which defines how Java objects and relational data should be mapped, and Hibernate, an object-relational mapping solution for Java environments. Start by exploring how to create an application that uses Hibernate APIs directly to interact with a database and examining hibernate configuration files in greater detail. You'll also investigate how Java objects can be created in an app and then persisted in a database and discover how the same operations can be implemented by applying JPA configurations, which then use Hibernate under the hood. Once you've completed this course, you'll be able to distinguish between JPA and Hibernate while also recognizing how they are connected.

Target

Prerequisites: none

Close Chat Live